package com.tubi.testIO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ioDemo5 {
    public static void main(String[] args) throws IOException {
        // 字节读数据
        FileInputStream fi = new FileInputStream("test-IO/a.txt");// 读取文件
//        int read = fi.read();
//        System.out.println((char)read);
//        fi.close();

        int b;   //读取多个文件
        while ((b=fi.read())!=-1){
            System.out.println((char)b);
        }
        fi.close();
    }
}
